package com.mapper;

import java.util.List;

import com.bean.Material;

public interface MaterialMapper {
    int deleteByPrimaryKey(Integer materialId);

    int insert(Material record);

    int insertSelective(Material record);
    
	/**
	 * 查询所有
	 * @return
	 */
	List<Material> selectAll();
	
	List<Material> selectByMaterialIdOrMaterialName(String searchWords);

    Material selectByPrimaryKey(Integer materialId);

    int updateByPrimaryKeySelective(Material record);

    int updateByPrimaryKey(Material record);
}